package com.wang.interview.tests.mtt;

import org.junit.Test;

import java.nio.ByteBuffer;
import java.text.DecimalFormat;

/**
 * @author: wang
 * @date: 2021/8/5 20:47
 * @description:
 */
public class MTT1 {
    @Test
    public void test01(){
        ByteBuffer buffer = ByteBuffer.allocateDirect(10);
    }
    @Test
    public void test02(){
        DecimalFormat df = new DecimalFormat("0.0");
        String format = df.format(-1.66);
        System.out.println(format);
    }
    @Test
    public void test03(){
        double f = 10.126;
        /*String format = String.format("%.2f", f);
        System.out.println(format);*/
        System.out.printf("%.2f",f);
    }
    @Test
    public void test04(){}
    @Test
    public void test05(){}
    @Test
    public void test06(){}
    @Test
    public void test07(){}
    @Test
    public void test08(){}
    @Test
    public void test09(){}
    @Test
    public void test10(){}
}
